package com.cn.ysf.newbeemall.mapper;

import com.cn.ysf.newbeemall.pojo.TbNewbeeMallIndexConfig;
import com.cn.ysf.newbeemall.util.PageQueryUtil;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;
import java.util.List;

/**
* tb_newbee_mall_index_config
* @author ysf
* @date 2019/12/02
*/
@Mapper
@Repository
public interface TbNewbeeMallIndexConfigMapper {


    /**
     * 根据id查找对象信息
     * @param configId
     * @return
     */
    TbNewbeeMallIndexConfig selectByPrimaryKey(Long configId);

    /**
     * 分页查询首页配置集合
     * @param pageUtil
     * @return
     */
    List<TbNewbeeMallIndexConfig> findIndexConfigList(PageQueryUtil pageUtil);


    /**
     *分页查询条数
     * @param pageUtil
     * @return
     */
    Long getTotalIndexConfigs(PageQueryUtil pageUtil);


    /**
     *根据首页类型配置和数量查找商品集合
     * @param configType
     * @param number
     * @return
     */
    List<TbNewbeeMallIndexConfig> findIndexConfigsByTypeAndNum(@Param("configType")Long configType,@Param("number")Long number);



}
